package createPattern.factoryPattern.simpleFactory;

import createPattern.factoryPattern.simpleFactory.factory.CarFactory;
import createPattern.factoryPattern.simpleFactory.product.Car;

public class Test {
	public static void main(String args[]) {
		Car jackCar = CarFactory.getCarByType("Buggati", "Jack", "blue");
		Car julyCar = CarFactory.getCarByType("Porsche", "Red", "red");
		jackCar.run();
		julyCar.run();

	}
}
